#ifndef X_MACROS
#define X_MACROS

#define DECLARE_TEXTURE(index) \
    texture2D texture##index; \
    sampler texture##index##Sampler : register(s##index) = sampler_state { Texture = (texture##index); AddressU = wrap; AddressV = wrap; }

#define SAMPLE_TEXTURE(index, texCoord)  tex2D(texture##index##Sampler, texCoord)

#endif